From 13b4d9fadeb7bfb87f351c235232dc5d7fd834fb Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Mon, 19 Jul 2004 15:30:45 +0000 Subject: [PATCH] bitkeeper revision 1.1108.2.1 (40fbe925tXfT_97FffvS1h8aPcGujA) Don't trust sfdisk -- leave determining a blkdev's lenth to the backend driver. --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 47b945f200..ce52533c62 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -100,7 +100,7 @@ def lookup_raw_partn(name): if line: return [ { 'device' : blkdev_name_to_number(p), 'start_sector' : long(0), - 'nr_sectors' : long(line) * 2, + 'nr_sectors' : long(1L<<63), 'type' : 'Disk' } ] else: # see if this is a hex device number -- 2.30.2